package com.anyisn.flickr.as3.utils
{
	import com.adobe.webapis.flickr.Photo;

	public class Urls
	{
		public function Urls()
		{
		}
		
		public static function getProfilePage(user_id:String):String {
			return 'http://www.flickr.com/people/' + user_id + '/';
		}
		
		public static function getPhotostreamPage(user_id:String):String {
			return 'http://www.flickr.com/photos/' + user_id + '/';
		}
		
		public static function getPhotoPage(user_id:String, photo_id:String):String {
			return 'http://www.flickr.com/photos/' + user_id + '/' + photo_id;
		}
		
		public static function getPhotoSrc(photo:Photo, size:String = ''):String {
			var suffix:String = size?('_'+size):'';
			return 'http://farm' + photo.farmId + '.static.flickr.com/' + photo.server + '/' + photo.id + '_' + photo.secret + suffix + '.jpg';
		}
	}
}